/*    */ package com.zimbra.cs.gal;
/*    */ 
/*    */ import com.zimbra.common.localconfig.KnownKey;
/*    */ import com.zimbra.common.localconfig.LC;
/*    */ import com.zimbra.common.util.Log;
/*    */ import com.zimbra.common.util.ZimbraLog;
/*    */ import com.zimbra.cs.account.Account;
/*    */ import com.zimbra.cs.extension.ExtensionUtil;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class GalGroupInfoProvider
/*    */ {
/*    */   private static GalGroupInfoProvider instance;
/*    */   
/*    */   public static synchronized GalGroupInfoProvider getInstance()
/*    */   {
/* 33 */     if (instance == null) {
/* 34 */       instance = makeInstance();
/*    */     }
/* 36 */     return instance;
/*    */   }
/*    */   
/*    */   private static GalGroupInfoProvider makeInstance() {
/* 40 */     GalGroupInfoProvider provider = null;
/* 41 */     String className = LC.zimbra_class_galgroupinfoprovider.value();
/* 42 */     if ((className != null) && (!className.equals(""))) {
/*    */       try {
/*    */         try {
/* 45 */           provider = (GalGroupInfoProvider)Class.forName(className).newInstance();
/*    */         }
/*    */         catch (ClassNotFoundException cnfe) {
/* 48 */           provider = (GalGroupInfoProvider)ExtensionUtil.findClass(className).newInstance();
/*    */         }
/*    */       } catch (Exception e) {
/* 51 */         ZimbraLog.account.error("could not instantiate GalGroupInfoProvider interface of class '" + className + "'; defaulting to GalGroupInfoProvider", e);
/*    */       }
/*    */     }
/* 54 */     if (provider == null)
/* 55 */       provider = new GalGroupInfoProvider();
/* 56 */     return provider;
/*    */   }
/*    */   
/*    */   public GalGroup.GroupInfo getGroupInfo(String addr, boolean needCanExpand, Account requestedAcct, Account authedAcct) {
/* 60 */     return GalGroup.getGroupInfo(addr, true, requestedAcct, authedAcct);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/gal/GalGroupInfoProvider.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */